import 'package:flutter/material.dart';

import '../bean/i_search_entity.dart';

class SearchProvider extends ChangeNotifier{
  final List<SearchRecord> _searchList = [];

  List<SearchRecord> get searchList => _searchList;

  set searchList(List<SearchRecord> value) {
    _searchList.addAll(value);
    notifyListeners();
  }

  set addSingleBean(SearchRecord key){
    _searchList.add(key);
    notifyListeners();
  }

   clear(){
    _searchList.clear();
    notifyListeners();
  }
}